/**
 * "Visual Paradigm: DO NOT MODIFY THIS FILE!"
 * 
 * This is an automatic generated file. It will be regenerated every time 
 * you generate persistence class.
 * 
 * Modifying its content may cause the program not work, or your work may lost.
 */

/**
 * Licensee: DuKe TeAm
 * License Type: Purchased
 */
package orm.orm;

import java.util.List;
import org.hibernate.criterion.DetachedCriteria;
import org.orm.PersistentSession;
import org.orm.criteria.*;

public class Cam_reporteDetachedCriteria extends AbstractORMDetachedCriteria {
	public final IntegerExpression re_id_reporte;
	public final StringExpression re_fecha;
	public final StringExpression re_coordenadas;
	public final StringExpression re_imagen_url;
	
	public Cam_reporteDetachedCriteria() {
		super(orm.orm.Cam_reporte.class, orm.orm.Cam_reporteCriteria.class);
		re_id_reporte = new IntegerExpression("re_id_reporte", this.getDetachedCriteria());
		re_fecha = new StringExpression("re_fecha", this.getDetachedCriteria());
		re_coordenadas = new StringExpression("re_coordenadas", this.getDetachedCriteria());
		re_imagen_url = new StringExpression("re_imagen_url", this.getDetachedCriteria());
	}
	
	public Cam_reporteDetachedCriteria(DetachedCriteria aDetachedCriteria) {
		super(aDetachedCriteria, orm.orm.Cam_reporteCriteria.class);
		re_id_reporte = new IntegerExpression("re_id_reporte", this.getDetachedCriteria());
		re_fecha = new StringExpression("re_fecha", this.getDetachedCriteria());
		re_coordenadas = new StringExpression("re_coordenadas", this.getDetachedCriteria());
		re_imagen_url = new StringExpression("re_imagen_url", this.getDetachedCriteria());
	}
	
	public Cam_tipo_reporteDetachedCriteria createTi_id_reporteCriteria() {
		return new Cam_tipo_reporteDetachedCriteria(createCriteria("ti_id_reporte"));
	}
	
	public Cam_reporte uniqueCam_reporte(PersistentSession session) {
		return (Cam_reporte) super.createExecutableCriteria(session).uniqueResult();
	}
	
	public Cam_reporte[] listCam_reporte(PersistentSession session) {
		List list = super.createExecutableCriteria(session).list();
		return (Cam_reporte[]) list.toArray(new Cam_reporte[list.size()]);
	}
}

